Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite ecommerce sample app #2687

Merged
merged 41 commits into from
Nov 15, 2024
Merged

Vite ecommerce sample app #2687

merged 41 commits into from
Nov 15, 2024

Conversation

svdimitr
Copy link
Contributor

@svdimitr svdimitr commented Nov 13, 2024

Related to https://github.com/telerik/kendo-react-private/issues/4360

The PR is opened so that we can deploy what we have so far. Polishing of the UI will be added in the next two days. The following discrepancies with the design can be expected:

  1. Not all buttons in the home page will lead to a specific product
  2. The "Vilora Jewelry picture" is not stretched to the full width

return (
<div
className="k-d-flex k-gap-5 k-justify-content-center k-border-y k-align-items-center k-pb-5"
key={isCartItem ? item.product.id : null}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will result in children having duplicated unique keys and this is bad because components with same keys may cause children to be duplicated and/or omitted. Please reconsider using the index of each child as unique key -> something like: cart-item-${index}

@bptodorova
Copy link
Contributor

Make sure the following commands pass.

cd examples/ecommerce-jewellery-store
npm ci
npm run build 
  • Currently npm ci says that there is divergency in package.json and package-lock.json

  • If I run npm i instead of npm ci and after that
    npm run build it fails with
    error TS17004: Cannot use JSX unless the '--jsx' flag is provided.

@svdimitr
Copy link
Contributor Author

Make sure the following commands pass.

cd examples/ecommerce-jewellery-store
npm ci
npm run build 
  • Currently npm ci says that there is divergency in package.json and package-lock.json
  • If I run npm i instead of npm ci and after that
    npm run build it fails with
    error TS17004: Cannot use JSX unless the '--jsx' flag is provided.

The npm ci command is fixed along with the --jsx flag. There are some build errors that were caused here 2ab47f8 and we are fixing

update README with available commands
@svdimitr svdimitr merged commit dc5b438 into master Nov 15, 2024
2 checks passed
@svdimitr svdimitr deleted the vite-ecommerce-sample-app branch November 15, 2024 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants